
#pragma once

#include"DataStruct.h"

LuaBinHead* CreateLuaHead();
FunctionStruct* CreateLuaFunction();

bool LoadLuaBin(LuaBinHead *head,FunctionStruct *fun,FILE *fp);
bool LoadLuaFunction(LuaBinHead *head,FunctionStruct *fun,FILE *fp);

bool SaveLuaBin(LuaBinHead *head,FunctionStruct *fun,FILE *fp);
bool SaveLuaFunction(LuaBinHead *head,FunctionStruct *fun,FILE *fp);

void ClearLuaHead(LuaBinHead* head);
void ClearLuaFunction(FunctionStruct* fun);
